class Student(object):
    count = 0

    def __init__(self, name):
        self.name = name
        self.set_count()

    def set_count(self):
       Student.count+=1

if Student.count!=0:
    print('text down')

else:
    tom=Student('to')
    if Student.count!=1:
        print('1down')
    else:
        lise=Student('to')
        if Student.count!=2:
            print('2down')
        else:
            print('success')




class Student(object):
    count = 0

    def __init__(self, name):
        self.name = name
        self.__set_count()

    def __set_count(self):
        Student.count += 1
if Student.count!=0:
    print('text down')

else:
    tom=Student('to')
    if Student.count!=1:
        print('1down')
    else:
        lise=Student('to')
        if Student.count!=2:
            print('2down')
        else:
            print('success')


#
# if Student.count != 0:
#     print('测试失败!')
# else:
#     bart = Student('Bart')
#     if Student.count != 1:
#         print('测试失败!')
#     else:
#         lisa = Student('Bart')
#         if Student.count != 2:
#             print('测试失败!')
#         else:
#             print('Students:', Student.count)
#             print('测试通过!')

# class Student(object):
#     count = 0
#
#     def __init__(self, name):
#         self.name = name
#         self.set_count()
#
#     def set_count(self):
#    Student.count+=1
#
# class Student(object):
#     count = 0
#
#     def __init__(self, name):
#         self.name = name
#         self.__set_count()
#
#     def __set_count(self):
#         Student.count += 1